<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $cfg_webname; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<style>
<!--
*{padding:0; margin:0;}
body{background:#f7f7f7;font-size:12px;}
#login{width:489px;height:311px;background:url(images/login.gif) no-repeat; position:absolute; top:50%;left:50%; 
margin:-155px 0 0 -244px;} 
h1{height:68px;background:url(images/logo.gif) 30% top no-repeat;margin:30px 0 0 45px;}
form {width:375px; height:90px; margin:0 auto; padding:0; position:relative}
.item{width:265px;float:left; text-align:left;color:#666666; margin-top:16px;}
.input{border:1px #d2d2d2 solid;padding:5px 5px 0; float:right;line-height:21px; height:21px;background:url(images/inputbg.gif);width:176px;}
.input input{border-width: 0;width:150px;height:18px;margin-left:8px;_margin-left:5px;}
label{line-height:28px; font-weight:bold;}
.icon{width:12px;height:18px; overflow:hidden;float:left;background:url(images/login_name.gif) 0 2px no-repeat}
.icon2{width:12px;height:18px; float:left;background:url(images/login_password.gif) no-repeat}
.icon3{width:12px;height:18px; float:left;background:url(images/login_validate.gif) 0 2px no-repeat}
.submit{width:83px;height:75px;border:0; position:absolute; top:15px; right:0;background:url(images/login_submit.gif); float:right; cursor:pointer}
.copyright{color:#aaaaaa;font-family:Arial,Helvetica,sans-serif; text-align:center; margin-top:20px;}
#notice{border:0;width:250px;height:20px;line-height:20px;clear:both;color:#FF0000;margin:8px 0 0 134px;}
td{font-size:12px; line-height:18px;}
.validate .input{width:100px;}
.validate .input input{text-transform:uppercase;}
.validate .vdimgck{width:70px;margin-left:6px;float:right;}
.validate .vdimgck img{border:1px solid #D2D2D2;margin-top:1px;cursor: pointer;}
-->
</style>
<script type="text/javascript">
function changeAuthCode() {
	var num = 	new Date().getTime();
	var rand = Math.round(Math.random() * 10000);
	num = num + rand;
	$('#ver_code').css('visibility','visible');
	if ($("#vdimgck")[0]) {
		$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
	}
	return false;	
}
</script>
</head>
<body>
<div id="login">
	<div class="warp">
    	<div class="content">
            <h1></h1>
            <form action="login.php" method="post" onsubmit="return checkform();">
			<input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo $gotopage;?>" />
			<input type="hidden" name="dopost" value="login" />
			<input name='adminstyle' type='hidden' value='newdedecms' />
            <div class="item">
				<div class="input">
					<div class="icon" title="用户名"></div>
						<input name="userid" value="" id="userid" tabindex="1" type="text" />
				</div>
				<label>用户名：</label>
			</div>
            <div class="item">
				<div class="input">
					<div class="icon2" title="密&nbsp;&nbsp;码"></div>
					<input name="pwd" value="" id="pwd" tabindex="2" type="password" />
				</div>
				<label>密&nbsp;&nbsp;码：</label>
			</div>

			<?php
			if(preg_match("/6/",$safe_gdopen))
			{
			?>
            <div class="item validate">
				<div class="vdimgck"><img id="vdimgck" onClick="this.src=this.src+'?'" alt="看不清？点击更换" src="../include/vdimgck.php"/></div>
				<div class="input">
					<div class="icon3" title="验证码"></div>
					<input name="validate" value="" id="validate" tabindex="2" type="text" style="width:75px;" />
				</div>
				<label>验证码：</label>
			</div>
			<?php
			}
			else
			{
			?>
			<div class="item"><div style="line-height:22px; height:22px;"></div></div>
			<?php
			}
			?>
			<input type="submit" tabindex="3" value="" class="submit" />
            </form>
    		<div id="notice">技术支持：<a href="mailto:kiner.lee@gmail.com">Kiner</a></div>
        </div>
    </div>
</div>
<script type="text/javascript">
<!--
window.onload = function()
{
	document.getElementById('userid').focus();
}
function checkform()
{
	var notice = document.getElementById('notice');
	var userid = document.getElementById("userid").value;
	if(!userid)
	{
		notice.innerHTML = '管理员名称不能为空！';
		return false;
	}
	var pwd = document.getElementById("pwd").value;
	if(!pwd)
	{
		notice.innerHTML = '管理员密码不能为空！';
		return false;
	}
}
//-->
</script>
</body>
</html>